#
# Be sure to run `pod lib lint MCComponentFunction.podspec' to ensure this is a
# valid spec before submitting.
#
# Any lines starting with a # are optional, but their use is encouraged
# To learn more about a Podspec see https://guides.cocoapods.org/syntax/podspec.html
#

Pod::Spec.new do |s|
  s.name             = 'MCComponentFunction'
  s.version          = '0.1.0'
  s.summary          = 'Swift 组件化 小功能集合'

# This description is used to generate tags and improve search results.
#   * Think: What does it do? Why did you write it? What is the focus?
#   * Try to keep it short, snappy and to the point.
#   * Write the description between the DESC delimiters below.
#   * Finally, don't worry about the indent, CocoaPods strips it!

  s.description      = <<-DESC
TODO: Add long description of the pod here.
                       DESC

  s.homepage         = 'https://gitee.com/mancong'
  # s.screenshots     = 'www.example.com/screenshots_1', 'www.example.com/screenshots_2'
  s.license          = { :type => 'MIT', :file => 'LICENSE' }
  s.author           = { 'MC' => '562863544@qq.com' }
  s.source           = { :git => 'https://gitee.com/mancong/iOS_Component_functions.git', :tag => s.version.to_s }


  s.ios.deployment_target = '9.3'
  s.swift_version = '4.2'
  
  s.subspec 'MCClipImage' do |ss|
      ss.source_files = "MCComponentFunction/Classes/ClipImage/*.swift"
      ss.ios.resource_bundle = { 'MCClipImageBundle' => 'MCComponentFunction/Assets/ClipImage/**/*.png' }
      
  end
  
  s.subspec 'MCCountDown' do |ss|
      ss.source_files = "MCComponentFunction/Classes/CountDown/*.swift"
  end
  
  s.subspec 'MCDatePicker' do |ss|
      ss.source_files = "MCComponentFunction/Classes/MCDatePicker/*.swift"
  end
  
  s.subspec 'MCGeocoder' do |ss|
      ss.source_files = "MCComponentFunction/Classes/MCGeocoder/*.swift"
  end
  
  s.subspec 'MCRefresh' do |ss|
      ss.source_files = "MCComponentFunction/Classes/MCRefresh/*.swift"
      ss.dependency 'MJRefresh'
  end
  
  s.subspec 'Positioning' do |ss|
      ss.source_files = "MCComponentFunction/Classes/Positioning/*.swift"
  end
  
  
  
  s.subspec 'MCNetwork' do |ss|
      ss.source_files = "MCComponentFunction/Classes/MCNetwork/*.swift"
      ss.dependency 'Alamofire'
  end
  
  s.subspec 'Tool' do |ss|
      ss.source_files = "MCComponentFunction/Classes/Tool/*.swift"
  end

  s.subspec 'Route' do |ss|
      ss.source_files = "MCComponentFunction/Classes/Route/*.swift"
  end
  
end
